package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangyang
 * @since 2021-10-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_rider")
public class Rider extends Model {

    private static final long serialVersionUID = 1L;
    /**
     * 骑手id
     */
    @TableId(value = "pk_riderId",type = IdType.AUTO)
    private Integer pkRiderid;

    /**
     * 骑手编号
     */
    @TableField("r_code")
    private String code;

    /**
     * 骑手姓名
     */
    @TableField("r_name")
    private String name;

    /**
     * 骑手性别
     */
    @TableField("r_sex")
    private String sex;

    /**
     * 骑手联系电话
     */
    @TableField("r_phone")
    private String phone;

    /**
     * 骑手注册时间
     */
    @TableField("r_time")
    private String time;

    /**
     * 骑手接单总额
     */
    @TableField(exist = false)
    private Integer orderMoney;

    /**
     * 骑手接单总数
     */
    @TableField(exist = false)
    private Integer orderNum;

}
